package com.ruoyi.houses.controller;


import com.ruoyi.common.R;
import com.ruoyi.common.utils.OSSFileUtil;
import com.ruoyi.houses.domain.Houses;
import com.ruoyi.houses.domain.dto.request.HousesReqDTO;
import com.ruoyi.houses.service.IRentHousesService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import java.io.IOException;

@RestController("RentHousesController")
@RequestMapping("/houses/rentHouses")
public class RentHousesController {



    @Resource
    IRentHousesService rentHousesService;



    /**
     * @description: 添加租房列表
     * @author: xushuaihang
     * @Date: 2024/9/17 16:06
     * @param:
     * @param housesReqDTO
     * @return: com.ruoyi.common.R
    **/
    @RequestMapping("/addRentHouses")
    public R addRentHouses(@RequestBody HousesReqDTO housesReqDTO){

        return  rentHousesService.addRentHouses(housesReqDTO);
    }





}
